cmake_minimum_required(VERSION 3.0.2)
project(px4_msgs)


find_package(catkin REQUIRED COMPONENTS
  message_generation  
  roscpp
  geometry_msgs
  actionlib_msgs
  sensor_msgs
  nav_msgs
  std_msgs
  std_srvs
  tf2_ros
  tf2_eigen
  mavros_msgs
)

#有用？
find_package(Boost REQUIRED COMPONENTS system)


add_message_files(
  #DIRECTORY msg
  FILES
  Px4State.msg
  Px4PositionReference.msg
  Px4ControlCommand.msg
  Px4ControlOutput.msg
  Px4AttitudeReference.msg
)

#有用？
#add_action_files(
#  DIRECTORY action
#  FILES
#  CheckForObjects.action
#)

generate_messages(
  DEPENDENCIES
  actionlib_msgs
  geometry_msgs 
  sensor_msgs
  std_msgs
)



catkin_package(
  CATKIN_DEPENDS
  message_runtime
  actionlib_msgs
  geometry_msgs
  sensor_msgs
  message_runtime
  std_msgs
)


include_directories(
# include
 ${catkin_INCLUDE_DIRS}
)

























